Don't show the window unless the widget is mapped. (#76742, Dennis
authorOwen Taylor <otaylor@redhat.com>
Fri, 29 Mar 2002 00:15:11 +0000 (00:15 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Fri, 29 Mar 2002 00:15:11 +0000 (00:15 +0000)
Thu Mar 28 18:38:30 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate):
Don't show the window unless the widget is mapped.
        (#76742, Dennis Björklund, Soeren Sandmann)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkhpaned.c
gtk/gtkvpaned.c

index 8d0fcaffacd51a27a134fc64eaf97e24388df3a1..66bc2169656890a2aa4c42d69bbb4f1689beec1a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Thu Mar 28 18:38:30 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): 
+       Don't show the window unless the widget is mapped.
+       (#76742, Dennis Björklund, Soeren Sandmann)
+
 2002-03-29  Hans Breuer  <hans@breuer.org>
 
        Fixed dashed line issues (#74441) to an IMO reasonable extend. 
index 8d0fcaffacd51a27a134fc64eaf97e24388df3a1..66bc2169656890a2aa4c42d69bbb4f1689beec1a 100644 (file)
@@ -1,3 +1,9 @@
+Thu Mar 28 18:38:30 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): 
+       Don't show the window unless the widget is mapped.
+       (#76742, Dennis Björklund, Soeren Sandmann)
+
 2002-03-29  Hans Breuer  <hans@breuer.org>
 
        Fixed dashed line issues (#74441) to an IMO reasonable extend. 
index 8d0fcaffacd51a27a134fc64eaf97e24388df3a1..66bc2169656890a2aa4c42d69bbb4f1689beec1a 100644 (file)
@@ -1,3 +1,9 @@
+Thu Mar 28 18:38:30 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): 
+       Don't show the window unless the widget is mapped.
+       (#76742, Dennis Björklund, Soeren Sandmann)
+
 2002-03-29  Hans Breuer  <hans@breuer.org>
 
        Fixed dashed line issues (#74441) to an IMO reasonable extend. 
index 8d0fcaffacd51a27a134fc64eaf97e24388df3a1..66bc2169656890a2aa4c42d69bbb4f1689beec1a 100644 (file)
@@ -1,3 +1,9 @@
+Thu Mar 28 18:38:30 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): 
+       Don't show the window unless the widget is mapped.
+       (#76742, Dennis Björklund, Soeren Sandmann)
+
 2002-03-29  Hans Breuer  <hans@breuer.org>
 
        Fixed dashed line issues (#74441) to an IMO reasonable extend. 
index 8d0fcaffacd51a27a134fc64eaf97e24388df3a1..66bc2169656890a2aa4c42d69bbb4f1689beec1a 100644 (file)
@@ -1,3 +1,9 @@
+Thu Mar 28 18:38:30 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): 
+       Don't show the window unless the widget is mapped.
+       (#76742, Dennis Björklund, Soeren Sandmann)
+
 2002-03-29  Hans Breuer  <hans@breuer.org>
 
        Fixed dashed line issues (#74441) to an IMO reasonable extend. 
index 8d0fcaffacd51a27a134fc64eaf97e24388df3a1..66bc2169656890a2aa4c42d69bbb4f1689beec1a 100644 (file)
@@ -1,3 +1,9 @@
+Thu Mar 28 18:38:30 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): 
+       Don't show the window unless the widget is mapped.
+       (#76742, Dennis Björklund, Soeren Sandmann)
+
 2002-03-29  Hans Breuer  <hans@breuer.org>
 
        Fixed dashed line issues (#74441) to an IMO reasonable extend. 
index b0e6481a666034034c4caadebf0aa51fe72fd3cc..4d35345a5b829dfc4479e298271113247c87be55 100644 (file)
@@ -172,7 +172,8 @@ gtk_hpaned_size_allocate (GtkWidget     *widget,
       
       if (GTK_WIDGET_REALIZED (widget))
        {
-         gdk_window_show (paned->handle);
+         if (GTK_WIDGET_MAPPED (widget))
+           gdk_window_show (paned->handle);
          gdk_window_move_resize (paned->handle,
                                  paned->handle_pos.x,
                                  paned->handle_pos.y,
index 39316f86685b8a11b177b1b5726b146c9fd9b342..47d12ddc2f6dfab666c538c45622b4c34d1c5b8c 100644 (file)
@@ -170,9 +170,10 @@ gtk_vpaned_size_allocate (GtkWidget     *widget,
       paned->handle_pos.width = MAX (1, (gint) widget->allocation.width - 2 * border_width);
       paned->handle_pos.height = handle_size;
       
-      if (GTK_WIDGET_REALIZED(widget))
+      if (GTK_WIDGET_REALIZED (widget))
        {
-         gdk_window_show (paned->handle);
+         if (GTK_WIDGET_MAPPED (widget))
+           gdk_window_show (paned->handle);
          gdk_window_move_resize (paned->handle,
                                  paned->handle_pos.x,
                                  paned->handle_pos.y,